/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.haipv.gtkhoa501;

import com.haipv.gtkhoa501.controller.Controller;
import com.haipv.gtkhoa501.controller.Event;
import com.sun.lwuit.Display;
import javax.microedition.midlet.*;

/**
 * @author PHANHAI
 */
public class Midlet extends MIDlet {

    public void startApp() {
        Display.init(this);
//        Display.getInstance().setForceFullScreen(true);
//        Display.setObjectTrait(Display.getInstance().getImplementation(), "nokia.ui.canvas.status_zone", Boolean.TRUE);
        Controller.getInstance().setMain(this);
        Controller.getInstance().handleEvent(Event.MAIN_ACTION, null);
    }
    
    public void pauseApp() {
    }
    
    public void destroyApp(boolean unconditional) {
    }
}
